package spring.j2024_11_16_2;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import spring.j2024_11_16_2.model.UserInfo;


@SpringBootApplication
public class J202411162Application {

    public static void main(String[] args) {
       ApplicationContext context =  SpringApplication.run(J202411162Application.class, args);

        UserInfo userInfo = context.getBean("u2", UserInfo.class);
        System.out.println(userInfo );
//        UserRepository userRepository = context.getBean(UserRepository.class) ;
//        userRepository.say();
//
//        UserConfiguration userConfiguration = context.getBean(UserConfiguration.class);
//        userConfiguration.say();

    }

}
